<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
</head>
<body>
<table border="2">
  <!--tr表示行，td表示列，th表头，caption表名-->

  <tr>
      <!--colspan跨列-->
      <td colspan="2">1-1</td>
      <td>1-2</td>
      <!--colspan跨行-->
      <td rowspan="2">1-3</td>
  </tr>
    <tr>
        <td>2-1</td>
        <td>2-2</td>
        <td>2-3</td>
    </tr>
</table>
<hr>
<table border="2">
    <caption>购物车</caption>
    <tr>
        <!--th表头设置-->
        <th>编号</th>
        <th>商品名</th>
        <th>单价</th>
    </tr>
    <tr>
        <td>1</td>
        <td>书</td>
        <td>20</td>
    </tr>
    <tr>
        <td>2</td>
        <td>本子</td>
        <td>10</td>
    </tr>
    <tr>
        <td>3</td>
        <td>笔</td>
        <td>5</td>
    </tr>
</table>


</body>
</html>